converted some key mappings to commands