fix to add 'back key' event in input thread mode