Make long_press works with 'duration' parameter.

Add a new parameter 'duration = None' to _get_opts