Provided are a hardware device, a user control apparatus for the same, a medical apparatus including the same, and a method of operating the medical apparatus. The method includes sensing a pattern of a hardware device disposed on a touch screen, and when the sensed pattern matches a stored pattern, determining the hardware device as an input apparatus enabling a user command to be input.