adding functionality to change the foreground and background color using CTRL and cursor