Threadsafe transfer of input between window and world through inputQueue