updated the camera movement code to limit max speed and vaguely added keymap support