refactor MyInputProcessor