Press up key to get to the bed, depending if you are on the bed or next to the food, click down or to the side using the arrow keys.
This game also took 2 seconds check out "Gnome Game" or "Explore" on my profile!