A MIDI keyboard is also referred to as a MIDI controller and so you could say that any device with knobs, sliders, buttons or keys that transmit MIDI data can be called a MIDI controller. However, there are many MIDI controllers that don’t have keyboards and offer a bank of knobs or sliders with which you can control parameters over MIDI. So, in that case, the difference would be the presence of a keyboard.