Student or Learner
He kept tapping the desk.
He kept tapping on the desk.
He kept tapping the desk with his pen.
He kept tapping on the desk with his pen.
Are the sentences all correct?
Your thread title should be
Are "tap the desk" and "tap on the desk" the same?
Note the correct way to ask your question.