Application of optical beams to electrons in graphene