Left and right arrow keys to move left and right. Up and down arrow keys to move back and forth. Approach closely to an object and press and hold space to break and collect it.
Credit to @aairfanf for the script. Note: I used bitmap to make every single sprite.