Applies PEP8 (except in some obvious cases).
Separates keyboard bindings in another module.