Implementation of faction system in Cursor
Escape/Backspace key function added