fix cursor key mapping