Implemented function and corrected keybindings