Refactoring velocity change + change handle key pressed/release