This is a basic gravity function. I will expand on it, but right now you can move with the arrow keys.