add function to change cubes velocity based on key press