A device and method detect user input for an electronic device based on linear acceleration and/or linear acceleration rate of the electronic device. More particularly, at least one of linear acceleration or linear acceleration rate of the electronic device is detected, the detected linear acceleration or acceleration rate is correlated to a gesture for controlling the electronic device.