jumping action modified based on key press duration