Make 'bit' in the process_input() callback a writable parameter to fix the 'Q' key.