Fixing forward and backward key-mapping.