It depends on which platform you are talking about. The PC version of Battlefield can be played on both Windows and Mac OS, but it is exclusive to the Origin platform for the Xbox One. This means that there is no way to play Battlefield with a keyboard or mouse if you use an Xbox One controller.