Fix an issue of key binding.
Indent

Change indent functions from classes to global functions.