refactored input handler.
basic terrain editing