When you look at k2.php (the system plugin) you can see that the K2 devs are using JRequest::getCmd() which is deprecated. They should use JFactory::getApplication()->input->get() instead....
More