add keyhandling to output controller