Implemented key mapping and more menu functionality.