My setup is annoying though. Some key bindings don't work like pressing triangle doesn't switch back and forth between weapons so I use the touchpad button to switch to another weapon. Parachuting I can't seem to get working right and menu popups don't work right. The main essentials like shooting and everything else is alright but honestly it's better to use a 360 controller for this game but you can try anyway.
http://www.filedropper.com/settings_2
extract this and put the files x360ce.exe, xinput1_3.dll and the other x360ce.ini file in the root directoy of bf4
The settings folder replaces the settings folder that should be in your ...battlefield 4 folder which is in your documents. back up yours just in case.