committing ashutosh's changes,added mouse drag and keyboard movement