Added an additional flag to distinguish between real scancodes (with start/stop character) and free input.