Add up/down key handling and limited frame rendering per second.