Create Dynamics.cpp

Implements the methods for handling keyboard commands