Fixed key event support in realtime.
Created TypedInput to allow easy wrapping around an Input that evaluates to a type.