Tried to filter keypresses in inputreader with a map<Type,boolean>